import http from '@/api'
import { PORT1 } from '@/api/config/port'

import { HomeRep } from '../interface/home'

export const ViolationHome = (params: HomeRep) => {
  return http.post<any>(PORT1 + `/entity/violation/home`, params)
}

export const ViolationTasks = (params: HomeRep) => {
  return http.post<any>(PORT1 + `/entity/violation/tasks`, params)
}

export const Notice = () => {
  return http.get<any>(PORT1 + `/entity/violation/tasks/notice`)
}
